<?php
session_start();
//Create a $websitePermission variable on each page to set a permission level for accessing it

$userPermission = $_SESSION['permission'];

if ($userPermission < $websitePermission)

{
$_SESSION['permissionMessage'] = "You don't have permissions to view this page";
header('Location: myAccount.php')
;}
?>